<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include("include/header.php"); ?>
<title><?php echo $info['title'];?> | <?php echo $info['description']; ?></title>
<link href="<?php echo $this->setting->static; ?>/css/twitter.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function imgt(img) {
	var res = img.getAttribute('res');
	var _is = img.getAttribute('_is');
	if(_is!='true') {
		img.setAttribute('_is', 'true');
		img.setAttribute('src', res + '/460');
	} else {
		img.setAttribute('_is', 'false');
		img.setAttribute('src', res + '/160');
	}
	return false;
}
</script>
</head>

<body>
<?php include("include/banner.php"); ?>
<div id="container">
	<div id="blog">
		<div id="content">
			<div id="main">
				<a name="twitter"></a>
				<div id="main-content" class="twitter">
					<div class="twitter-list">
						<ul class="paged">
							<li class="r"><a href="<?php echo $this->url('home'); ?>/">Home</a><a href="<?php echo $this->url('home'); ?>/twitter">Twitter Home</a><?php if($TQQ) { ?><a href="javascript:TLogout()">Logout</a><?php } ?></li>
						</ul>
						<div class="clear"></div>
						<?php foreach($posts['info'] as $key => $post) { ?>
						<ul class="post<?php if($key==0){echo ' first';} ?>" id="post-<?php echo $post['id']; ?>">
							<li class="content">
								<div class="text"><?php echo $twitter->content_format($post, $posts['user']); ?></div>
							</li>
							<li class="meta"><?php echo $twitter->date_format($post['timestamp']); ?> 来自<span><?php echo $post['from']; ?></span></li>
						</ul>
						<?php } ?>
						<div class="clear"></div>
						<ul class="paged">
							<?php $twitter->twitter_pager(); ?>
							<li class="r"><a href="<?php echo $this->url('home'); ?>/twitter">Twitter Home</a><a href="#twitter">Top</a></li>
						</ul>
					</div>
					<div id="ttbar">
						<span class="headimg"><img src="<?php echo $user['head'];?>/100" onerror="this.src='<?php echo $this->setting->static; ?>/img/logo.jpg';" /></span>
						<ul class="nums">
							<li>听众: <em><?php echo $user['fansnum'];?></em></li>
							<li>收听: <em><?php echo $user['idolnum'];?></em></li>
							<li>广播: <em><?php echo $user['tweetnum'];?></em></li>
							<li>&nbsp;</li>
						</ul>
						<div class="clear"></div>
						<ul class="ui">
							<li><strong><a href="<?php echo $this->url('home'); ?>/twitter/<?php echo $user['name'];?>"><?php echo $user['nick'];?></a></strong> (<?php echo $user['location'];?>)</li>
							<li class="sign"><?php echo $user['introduction'];?></li>
							<li class="tag"><?php
							if(!empty($user['tag'])) {
								$a = array();
								foreach($user['tag'] as $tag){
									$a[] = $tag['name'];
								}
								echo '<strong>标签</strong>：'.implode(', ', $a);
							}
							?></li>
						</ul>
						<div class="clear"></div>
						<h2><a href="http://t.qq.com/<?php echo $user['name'];?>" target="_blank">+关注<?php echo $user['nick'];?></a></h2>
						<div class="clear"></div>
						<div>
						<script type="text/javascript"><!--
						google_ad_client = "ca-pub-0848173796214649";
						/* ghostwei-twitter */
						google_ad_slot = "8624684067";
						google_ad_width = 200;
						google_ad_height = 200;
						//-->
						</script>
						<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
						</div>
						<h3>热门话题</h3>
						<ul class="tlist"><?php
						if(is_array($topics['info'])) {
							foreach($topics['info'] as $topic) {
								echo '<li><a href="'.$this->url('home').'/twitter/k/'.$this->url_encode($topic['keywords']).'">';
								echo $topic['name'].'</a></li>';
							}
						}
						?></ul>
						<div class="clear"></div>
						<h3>名人推荐</h3>
						<ul class="tlist img"><?php
						if(is_array($famous['info'])) {
							foreach($famous['info'] as $key => $fms) {
								echo '<li>';
								//echo '<span><img src="'.$fms['head'].'/50"" /></span>';
								echo '<a href="'.$this->url('home').'/twitter/'.$fms['account'].'">'.$fms['nick'].'</a>';
								echo '<p>'.$fms['brief'].'</p>';
								echo '</li>';
							}
						}
						?></ul>
					</div>
					<div class="clear"></div>
					
				</div>
			</div>
			
			<!-- side bar -->
			<div id="side">
				<?php include("include/sidebar.php"); ?>
			</div>
			
			<div class="clear h25"></div>
		</div>
		<div class="clear"></div>
	</div>	
</div>

<?php include("include/footer.php"); ?>
</body>
</html>